<!-- 基于AInput的二次封装，用于统一项目输入框默认样式 -->
<template>
  <a-input v-trim :allow-clear="props.search">
    <template v-if="props.search" #prefix> <i class="iconfont icon-search-line"></i> </template>
  </a-input>
</template>

<script lang="ts" setup>
  export interface Props {
    // 是否显示搜索icon
    search?: boolean
  }

  const props = withDefaults(defineProps<Props>(), {
    search: false
  })
</script>

<style lang="less" scoped></style>
